/**
 * 页面顶端
 * 
 */

$(function(){
	//var the_item=$('input:hidden').attr('value');
	 var title=[{"name":"我的主页","url":"/College/home.html"},{"name":"我的目标","url":"#"},
	            {"name":"目标广场","url":"#"},{"name":"职业测评","url":"#"},
	            {"name":"数据报告","url":"/College/html/data_analyse/class_data_analyse.jsp"}];
     var str='<header class="home_header"></header>';
     $('body').prepend(str);
     $('.home_header').append('<div class="header_left"><img src="/College/img/logo.png" /><h2>智行校园--精准化服务平台</h2></div>')
                      .append('<div class="header_tright"></div>')
                      .append('<h2 style=" float: right;font-size: 1.2em;margin-top: -1.5em;">学生端--后台管理</h2>');
     var child_top='<a href="/College/home.html">智行校园首页</a>';
	 child_top+='<a href="#">消息</a>';
	 child_top+='<a href="/College/html/personal_center/point_notes.jsp"></a>';
	 child_top+='<a href="#">退出</a>';
	 child_top+='<img src="">';
	 $(child_top).appendTo('.header_tright');
     $.ajax({
    	 url:'/College/jsp/top.json',
    	 type:'post'
     }).done(function(data){
    	 $('.header_tright a:eq(2)').text(data.student_name);
    	 $('.header_tright img').attr('src',data.faceaddress);
     });
   
    
  //   $('a:contains("'+the_item+'")').parent().addClass('selected').siblings().removeClass('selected');
     
});